# -*- coding: utf-8 -*-
"""
Created on Wed Jun 21 19:00:19 2017

@author: qiang.qian
"""

import pylab as pl
import numpy as np
import statsmodels.api as sm
import pandas as pd

df = pd.read_csv('D:\\QIAN\\CODE\\oschina\\pyone\\user_attention.csv')

print(df.head())
    
df.hist()

train_cols = df.columns[1:5]

logit = sm.Logit(df['finish'], df[train_cols])

result = logit.fit(maxiter = 100,start_params=None) 

